// ScreenCaptureDlg.h : header file
//

#pragma once
#include "afxwin.h"


// CScreenCaptureDlg dialog
class CScreenCaptureDlg : public CDialog
{
// Construction
public:
	CScreenCaptureDlg(CWnd* pParent = NULL);	// standard constructor
	~CScreenCaptureDlg();
// Dialog Data
	enum { IDD = IDD_SCREENCAPTURE_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;
	HWND m_CaptureWnd;
	CRect m_CaputeRect;
	
	
private:
	enum m_EnumObjectCut{ CUSTOMER,GETOBJECT,FREECUT};
	
	CStatic m_IMGObjectCut;
	m_EnumObjectCut m_ObjectCutState;

	GraphicsPath path;

	int DrawFrame(HWND hWnd);
	int RedrawWindowFrame(HWND hWnd);
	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonRectcut();
	afx_msg void OnBnClickedButtonObjectcut();
	afx_msg void OnLButtonDown(UINT, CPoint);
	afx_msg void OnLButtonUp(UINT,CPoint);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	

	afx_msg void OnBnClickedButtonFreecut();
};
